

/**
 * @author Carlos
 * @version 1.0
 * @created 09-oct-2013 05:23:39 p.m.
 */
using System.Xml;
using Imaginarium.XML;
namespace Imaginarium.effect
{
    public class HPMPModifier
    {

        public int hpInc { get; set; }
        public int mpInc { get; set; }
        public bool isPercentage { get; set; }
        

        public HPMPModifier()
        {

        }
        public HPMPModifier(XmlElement element)
        {
            this.hpInc = XmlHelper.getIntByTagname(element, XmlParameters.HPMP_MODIFIER_INC_HP);
            this.mpInc = XmlHelper.getIntByTagname(element, XmlParameters.HPMP_MODIFIER_INC_MP);
            this.isPercentage = XmlHelper.getBoolByTagname(element, XmlParameters.HPMP_MODIFIER_IS_PERCENTAGE);
        }

        public override string ToString()
        {
            string ans = "";
            ans += "hpInc: " + hpInc + "\n";
            ans += "mpInc: " + mpInc + "\n";
            ans += "isPercentage: " + isPercentage + "\n";
            return ans;
        }

    }
}